<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>09-v-bind绑定属性</title>
  
  <style> 
    .classNameA {
      color: red;
    }

    .classNameB {
      color: blue;
    }
  </style>
</head>
<body>
    <div id="app">
      <h1 v-bind:class="h1Class">abc</h1>
      <img :src="imgSrc" alt="">
    </div>
    <script src="./js/vue.js"></script>
    <script>
      const app = new Vue({
        el: "#app",
        data: {
          h1Class: "classNameB",
          imgSrc: "../02CSS基础/assets/a.png"
        },
      })
    </script>
</body>
</html>